package com.dc.chat.entity.to.back;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class AddSensitiveReq {
    @Pattern(regexp = "1|2")
    private Integer type;
    @NotNull
    private String content;
}
